package com.liuzh.kaoyanspringboot.service;

import com.liuzh.kaoyanspringboot.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 刘志鸿
 * @since 2023-03-11
 */
public interface CommentService extends IService<Comment> {

    List<Comment> findCommentDetail(Integer articleId);

    boolean decrementLike(Integer id);

    boolean increaseLike(Integer id);

    Comment findById(Integer commentId);

    List<Comment> findReplyByIds(List<Integer> replyCommentIds);

    List<Comment> findByPid(Integer pid);

    List<Comment> fListByIds(List<Integer> ids);

    Integer myCount();
}
